package com.zero2oneblog.handler.exception;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

public class UserNameAlreadyExistException extends BaseException{
    public UserNameAlreadyExistException(ErrorCode errorCode, Map<String, Object> data) {
//        super(errorCode, data);
        super(ErrorCode.USER_NAME_ALREADY_EXIST, data);
    }

//    public UserNameAlreadyExistException(ImmutableMap<String, String> of) {
//        super();
//    }

    public UserNameAlreadyExistException(Map<String, Object> data) {
        super(ErrorCode.USER_NAME_ALREADY_EXIST, data);
    }
}
